<%@ page contentType='text/html; charset=iso-8859-1' language="java"%>
<%@ page pageEncoding="UTF-8"%>
<%@ include file="../WEB-INF/jspf/acesso.jspf" %>
<%@ include file="../WEB-INF/jspf/setMeta.jspf" %>

<sql:query var='rsetSolicitacao' dataSource='${con}'>    
    SELECT Solicitacao.tecnico FROM Solicitacao 
    WHERE idSolicitacao = ${param.chv1}
</sql:query>

<sql:query var='rsetUsuario' dataSource='${con}'>    
    SELECT Usuario.usuario, Usuario.nome, Usuario.equipe FROM Usuario 
    WHERE Usuario.usuario = '<%out.print( session.getValue("usuarioLogado"));%>'
</sql:query>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<title>Solu&ccedil;&otilde;o Adotada</title>
<link rel="stylesheet" type="text/css" href="./stilos.css" />

</head>

<body>

<form name="form1" method="post" action="../controller/registrarSolucao.jsp">
  <fieldset>
  <legend><font color="#0000FF"><strong>Registrar Solu&ccedil;&atilde;o para a 
  Solicita&ccedil;&atilde;o n&ordm; ${param.chv1}.</strong></font></legend>
  <p>&nbsp;</p>
  <table width="100%" border="1">
    <tr bgcolor="#00CCFF"> 
      <td width="66%" ><div align="center"><strong>Solu&ccedil;&atilde;o Adotada</strong></div></td>
    </tr>
    <tr> 
      <td height="20"><div align="center"> 
          <table width="100%">
            <tr> 
              <td width="46%"><strong>Solicita&ccedil;&atilde;o n&deg;:</strong></td>
              <td> <input type="text" name="idSolicitacao" value="${param.chv1}" readonly=""/></td>
            </tr>
            <tr> 
              <td><strong>Delegada/Repassada em:</strong></td>
              <td> <input type="text" name="dataDelegacao" size="10" readonly="" />
                <input type="text" name="horaDelegacao" size="8" readonly=""/></td>
            </tr>
            <tr> 
              <td><strong>Data de preenchimento:</strong></td>
              <td> <input type="text" name="dataSolucao" size="10" readonly=""/>
                <input type="text" name="horaSolucao" size="8" readonly="" /></td>
            </tr>            
            
              
             <input type="hidden" name="tempoUtilizado" size="50" value="" /></td>
            
            <tr> 
              <td><strong>Respons&aacute;vel:</strong></td>
              <td><input type="text" name="tecnicoResponsavel" size="50" value="<c:out value="${rsetUsuario.rowsByIndex[0][1]}"/>" readonly=""/></td>
            </tr>
            <tr> 
              <td><strong>Resumo da solu&ccedil;&atilde;o adotada:</strong></td>
              <td rowspan="2"><textarea name="resumoSolucao" cols="50" rows="3"></textarea></td>
            </tr>
            <tr> 
              <td>&nbsp;</td>
            </tr>
          </table>
        </div></td>
    </tr>
    <tr> 
      <td > <div align="right"></div>
        <table width="100%">
          <tr> 
            <td width="28%"><div align="right"></div></td>
            <td width="22%"> <div align="center"> 
                <input type="button" name="cancelar" value=" Cancelar " onclick="javascript:window.close();" />
              </div></td>
            <td width="26%"><div align="center"> 
                <input type="reset" name="limpar" value="  Limpar  " />
              </div></td>
            <td width="24%"> <div align="center"> 
                <input type="submit" name="Submit" value="  Enviar " />
              </div></td>
          </tr>
        </table>
        <div align="left"></div>
        <div align="left"></div>
        <div align="center"> </div></td>
    </tr>
  </table>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  </fieldset>
</form>

</body>
</html>
